package com.dingreading.cloud.common.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class AliyunBookDto {

    @JsonProperty("status")
    private String status;
    @JsonProperty("msg")
    private String msg;
    @JsonProperty("result")
    private ResultDTO result;

    @NoArgsConstructor
    @Data
    public static class ResultDTO {
        @JsonProperty("title")
        private String title;
        @JsonProperty("subtitle")
        private String subtitle;
        @JsonProperty("pic")
        private String pic;
        @JsonProperty("author")
        private String author;
        @JsonProperty("summary")
        private String summary;
        @JsonProperty("publisher")
        private String publisher;
        @JsonProperty("pubplace")
        private String pubplace;
        @JsonProperty("pubdate")
        private String pubdate;
        @JsonProperty("page")
        private Integer page;
        @JsonProperty("price")
        private String price;
        @JsonProperty("binding")
        private String binding;
        @JsonProperty("isbn")
        private String isbn;
        @JsonProperty("isbn10")
        private String isbn10;
        @JsonProperty("keyword")
        private String keyword;
        @JsonProperty("cip")
        private String cip;
        @JsonProperty("edition")
        private String edition;
        @JsonProperty("impression")
        private String impression;
        @JsonProperty("language")
        private String language;
        @JsonProperty("format")
        private String format;
        @JsonProperty("class")
        private String classX;
        @JsonProperty("sellerlist")
        private List<SellerlistDTO> sellerlist;

        @NoArgsConstructor
        @Data
        public static class SellerlistDTO {
            @JsonProperty("seller")
            private String seller;
            @JsonProperty("price")
            private String price;
        }
    }
}
